﻿using System.Diagnostics;
using System.Xml.Serialization;
using PrearrangedChaos.AgileZen.Service.Model;

namespace PrearrangedChaos.AgileZen.Service.Rest
{
    /// <remarks/>
    [DebuggerStepThrough()]
    [XmlTypeAttribute(AnonymousType = true)]
    [XmlRoot(ElementName = "stories", Namespace = "", IsNullable = false)]
    [ZenRestRequest("projects/{ProjectId}/stories")]
    public partial class StoryCollection : PagingCollection<Story>
    {
        private Story[] _stories;

        /// <remarks/>
        [XmlArrayItemAttribute("story", IsNullable = false, Type = typeof(Story))]
        [XmlArray(ElementName = "items")]
        public Story[] Items
        {
            get
            {
                return this._stories;
            }
            set
            {
                this._stories = value;
            }
        }

        public override Story[] GetItems()
        {
            return this._stories;
        }
    }
}
